﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PearTunes.Model
{
    /// <summary>
    /// Simple model for a music track
    /// </summary>
    [DataContract]
    public class Track
    {
        /// <summary>
        /// Unique ID for the track
        /// </summary>
        [DataMember]
        public int TrackId { get; set; }

        /// <summary>
        /// The track's URL address used for streaming and downloading
        /// </summary>
        [DataMember]
        public string FilePath { get; set; }

        /// <summary>
        /// The track's Artist
        /// </summary>
        [DataMember]
        public string Artist { get; set; }
        /// <summary>
        /// Title of the track
        /// </summary>
        [DataMember]
        public string Title { get; set; }
        /// <summary>
        /// Publication year of the track
        /// </summary>
        [DataMember]
        public int Year { get; set; }
        /// <summary>
        /// Track's default genre
        /// </summary>
        [DataMember]
        public string Genre { get; set; }
        /// <summary>
        /// The number of the track if it's in a collection
        /// </summary>
        [DataMember]
        public int TrackNumber { get; set; }

        /// <summary>
        /// Price of the track if bought from the online store
        /// </summary>
        [DataMember]
        public int Price { get; set; }

        /// <summary>
        /// Collection of albums that include the track
        /// </summary>
        [DataMember]
        public List<Album> Albums { get; set; }
    }
}
